package com.ikun.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ikun.entity.Properties;
import com.ikun.entity.Users;

/**
 * @ClassName: PropertyDao
 * @Author: 吴思伟
 * @CreateTime: 2025-03-26 10:14
 * @Description: TODO
 */

public interface PropertiesDao {
    List<Properties> findAll();

    List<Properties> findAllByManagementId(@Param("managementId") String managementId);

    int updateManager(@Param("buildingId") String buildingId, @Param("managerId") String managerId);

    List<Properties> selectOneByOwnerId(@Param("ownerId") String ownerId);

    int countAllProperties();

    List<Properties> findByBuildingidAndStatus(@Param("buildingId") Integer buildingId);

    List<Properties> showmyinfoAllProperties();

    int addOwner(Users users);

    int updateOwner(@Param("ownerId") String ownerId, @Param("propertyId") String propertyId);

    int addProperties(Properties properties);

    int addProperty(Properties properties);

}
